package com.dp.builder;

/**
 * <p>program: dp.learn.master</p>
 * <p>Description: 指挥者：项目经理</p>
 * <p>Copyright: Copyright (c) 2020</p>
 * <p>Company: wylCloud.com</p>
 *
 * @author wyl (764198025@qq.com)
 * @version 1.0
 * @date Create in 2020/7/2
 */
public class ProjectManager {

    /***
     *  装修工人
     */
    private Decorator builder;

    public ProjectManager(Decorator builder) {
        this.builder = builder;
    }

    /***
     * 产品构建与组装方法
     * @return 客厅
     */
    public Parlour decorate(){
        builder.buildWall();
        builder.buildTV();
        builder.buildSofa();
        return builder.getResult();
    }
}
